!'use strict';
var multipartMiddleware = require('connect-multiparty')();
let singleLampController = require('../../../app/controller/back/operate/singleLampController');
singleLampController = ModelProxy(singleLampController);
let router = require('express').Router();

//分组管理
router.get('/page', singleLampController.singleLampPage);
router.post('/list', singleLampController.singleLampList);

router.post('/export',singleLampController.singleLampExport);// Excel导出
router.post('/upload',multipartMiddleware,singleLampController.singleLampUpload);//Excel导入

/*新增页面*/
router.get('/add/page', singleLampController.addSingleLampPage); //新增
router.get('/add/save', singleLampController.addSingleLampSave); //新增

router.post('/delete', singleLampController.deleteSingleLamp); //删除
router.post('/map_list', singleLampController.LampMapList); //项目地图经纬度
router.post('/imsi', singleLampController.IMSIList); //项目地图经纬度

router.get('/singleDetail/page', singleLampController.singleDetailPage);//详情
router.get('/singleDetail/refreshNetEnd', singleLampController.refreshNetEnd);//刷新终端

router.get('/singleSet/page', singleLampController.singleSetPage);//设置
router.get('/singleModify/page', singleLampController.singleModifyPage);//修改

module.exports = router;